const judeCharIsNumberOrChar = (charName) => {
  return charName.search(/[0-9]|[a-zA-Z]/) === -1;
};

console.log(judeCharIsNumberOrChar(".,"));
